\hypertarget{chmod_8c}{
\section{chmod.c File Reference}
\label{chmod_8c}\index{chmod.c@{chmod.c}}
}
{\ttfamily \#include $<$stdio.h$>$}\par
{\ttfamily \#include $<$stdlib.h$>$}\par
{\ttfamily \#include $<$unistd.h$>$}\par
{\ttfamily \#include $<$sys/stat.h$>$}\par
{\ttfamily \#include $<$sys/types.h$>$}\par
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
int \hyperlink{chmod_8c_a8ff695ce30a8d272d7902ecbc0687152}{chmod\_\-default} (int mode, char $\ast$fdname)
\begin{DoxyCompactList}\small\item\em function executed to change the mode of a file / directory \item\end{DoxyCompactList}\item 
mode\_\-t \hyperlink{chmod_8c_a094a60413b5e59c04366d4ff6ef9bd32}{itomode} (int mode)
\begin{DoxyCompactList}\small\item\em function executed to change parse int to mode\_\-t \item\end{DoxyCompactList}\item 
int \hyperlink{chmod_8c_a3c04138a5bfe5d72780bb7e82a18e627}{main} (int argc, char $\ast$$\ast$argv)
\begin{DoxyCompactList}\small\item\em command main function \item\end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
\begin{DoxyAuthor}{Author}
Oana Munteanu, anul 2 Informatica -\/ Engleza 
\end{DoxyAuthor}
\begin{DoxyVersion}{Version}
1.0
\end{DoxyVersion}
change the mode of a file / directory 

\subsection{Function Documentation}
\hypertarget{chmod_8c_a8ff695ce30a8d272d7902ecbc0687152}{
\index{chmod.c@{chmod.c}!chmod\_\-default@{chmod\_\-default}}
\index{chmod\_\-default@{chmod\_\-default}!chmod.c@{chmod.c}}
\subsubsection[{chmod\_\-default}]{\setlength{\rightskip}{0pt plus 5cm}int chmod\_\-default (int {\em mode}, \/  char $\ast$ {\em fdname})}}
\label{chmod_8c_a8ff695ce30a8d272d7902ecbc0687152}


function executed to change the mode of a file / directory 


\begin{DoxyParams}{Parameters}
\item[{\em mode}]-\/ new mode \item[{\em $\ast$$\ast$fdname}]-\/ file or directory\end{DoxyParams}
\begin{DoxyReturn}{Returns}
0 on success or a positive int on failure 
\end{DoxyReturn}
\hypertarget{chmod_8c_a094a60413b5e59c04366d4ff6ef9bd32}{
\index{chmod.c@{chmod.c}!itomode@{itomode}}
\index{itomode@{itomode}!chmod.c@{chmod.c}}
\subsubsection[{itomode}]{\setlength{\rightskip}{0pt plus 5cm}mode\_\-t itomode (int {\em mode})}}
\label{chmod_8c_a094a60413b5e59c04366d4ff6ef9bd32}


function executed to change parse int to mode\_\-t 


\begin{DoxyParams}{Parameters}
\item[{\em mode}]-\/ int mode to be converted to mode\_\-t\end{DoxyParams}
\begin{DoxyReturn}{Returns}
mode\_\-t 
\end{DoxyReturn}
\hypertarget{chmod_8c_a3c04138a5bfe5d72780bb7e82a18e627}{
\index{chmod.c@{chmod.c}!main@{main}}
\index{main@{main}!chmod.c@{chmod.c}}
\subsubsection[{main}]{\setlength{\rightskip}{0pt plus 5cm}int main (int {\em argc}, \/  char $\ast$$\ast$ {\em argv})}}
\label{chmod_8c_a3c04138a5bfe5d72780bb7e82a18e627}


command main function 


\begin{DoxyParams}{Parameters}
\item[{\em argc}]-\/ calling arguments counter \item[{\em $\ast$$\ast$argv}]-\/ calling arguments vector\end{DoxyParams}
\begin{DoxyReturn}{Returns}
0 on success or a positive int on failure 
\end{DoxyReturn}


\begin{DoxySeeAlso}{See also}
run command if new mode and file/dir exists in arguments 

\hyperlink{chmod_8c_a8ff695ce30a8d272d7902ecbc0687152}{chmod\_\-default} (atoi(argv\mbox{[}1\mbox{]}), argv\mbox{[}2\mbox{]});
\end{DoxySeeAlso}


